﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DoAnQuamLy.Controller;
using DoAnQuamLy.GUI;

namespace DoAnQuamLy
{
    public partial class Frm_PhieuChi : DevExpress.XtraEditors.XtraForm
    {
        public Frm_PhieuChi()
        {
            InitializeComponent();
        }
        PhieuChiController ctr1 = new PhieuChiController();
        private void Frm_PhieuChi_Load(object sender, EventArgs e)
        {
            ctr1.SapXepDuLieuLenPhieuchi(txt_SoPhieuChi, dtp_Ngay, cmb_LoaiPhieuChi, txt_LiDoChi, txt_ChungTuGoc, txt_NguoiNhan, txt_DiaChi, nud_SoTien, txt_GhiChu);
        }

        private void btn_GhiDuLieu_Click(object sender, EventArgs e)
        {
            ctr1.Update();
        }

        private void btn_In_Click(object sender, EventArgs e)
        {
            ReportPhieuChi rp = new ReportPhieuChi();
            rp.Show();
        }

    }
}